package com.qiyebox.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.qiyebox.system.mapper.MeetingMemoMapper;
import com.qiyebox.system.domain.MeetingMemo;
import com.qiyebox.system.service.IMeetingMemoService;
import com.qiyebox.common.core.text.Convert;

/**
 * 会议纪要Service业务层处理
 * 
 * @author qiyebox
 * @date 2025-02-14
 */
@Service
public class MeetingMemoServiceImpl implements IMeetingMemoService 
{
    @Autowired
    private MeetingMemoMapper meetingMemoMapper;

    /**
     * 查询会议纪要
     * 
     * @param id 会议纪要主键
     * @return 会议纪要
     */
    @Override
    public MeetingMemo selectMeetingMemoById(Long id)
    {
        return meetingMemoMapper.selectMeetingMemoById(id);
    }

    /**
     * 查询会议纪要列表
     * 
     * @param meetingMemo 会议纪要
     * @return 会议纪要
     */
    @Override
    public List<MeetingMemo> selectMeetingMemoList(MeetingMemo meetingMemo)
    {
        return meetingMemoMapper.selectMeetingMemoList(meetingMemo);
    }

    /**
     * 新增会议纪要
     * 
     * @param meetingMemo 会议纪要
     * @return 结果
     */
    @Override
    public int insertMeetingMemo(MeetingMemo meetingMemo)
    {
        return meetingMemoMapper.insertMeetingMemo(meetingMemo);
    }

    /**
     * 修改会议纪要
     * 
     * @param meetingMemo 会议纪要
     * @return 结果
     */
    @Override
    public int updateMeetingMemo(MeetingMemo meetingMemo)
    {
        return meetingMemoMapper.updateMeetingMemo(meetingMemo);
    }

    /**
     * 批量删除会议纪要
     * 
     * @param ids 需要删除的会议纪要主键
     * @return 结果
     */
    @Override
    public int deleteMeetingMemoByIds(String ids)
    {
        return meetingMemoMapper.deleteMeetingMemoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除会议纪要信息
     * 
     * @param id 会议纪要主键
     * @return 结果
     */
    @Override
    public int deleteMeetingMemoById(Long id)
    {
        return meetingMemoMapper.deleteMeetingMemoById(id);
    }
}
